package com.example.fwcz.service.impl;

import com.example.fwcz.entity.meetInfo;
import com.example.fwcz.entity.user;
import com.example.fwcz.mapper.MeetMapper;
import com.example.fwcz.mapper.UserMapper;
import com.example.fwcz.service.MeetService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class MeetServiceImpl implements MeetService {
    @Autowired
    MeetMapper meetMapper;

    @Override
    public void addMeet(meetInfo meetInfo){
        meetMapper.addMeet(meetInfo);
    }

    @Override
    public void deleteMeet(int id){
        meetMapper.deleteMeet(id);
    }

    @Override
    public void changeMeet(meetInfo meetInfo){
        meetMapper.changeMeet(meetInfo);
    }

    @Override
    public List<meetInfo> searchAllmeet(){
        return meetMapper.searchAllmeet();
    }

    @Override
    public meetInfo searchOnemeet(int id){
        return meetMapper.searchOnemeet(id);
    }

    @Override
    public List<meetInfo> searchUsermeet(String user_id){
        return meetMapper.searchUsermeet(user_id);
    }

    @Override
    public List<meetInfo> searchLandlordmeet(String landlord_id){
        return meetMapper.searchLandlordmeet(landlord_id);
    }
}
